class CreateHits < ActiveRecord::Migration
  def self.up
    create_table :hits do |t|
      t.column :website_id, :integer
      t.column :controller, :string
      t.column :action, :string
      t.column :id_param, :string
      t.column :other_params, :string
      t.column :method, :string
      t.column :remote_ip, :string
      t.column :user_agent, :string
      t.column :request_uri, :string
      t.column :referer, :string
      t.column :created_at, :datetime
      t.column :user_id, :integer
    end
  end

  def self.down
    drop_table :hits
  end
end
